-- GENERATED SPELL FOR [Boss Grog'ak] --


function spell0_18159(pUnit, Event) --@Demoralizing Shout,Self--
pUnit:FullCastSpellOnTarget(13730,pUnit)
pUnit:RegisterEvent('Sorts_18159', 30336, 1)
end

function spell1_18159(pUnit, Event) --@Forceful Cleave,n/a--
pUnit:FullCastSpellOnTarget(35473,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18159', 0, 1)
end

function Sorts_18159(pUnit, Event)
local choix_sorts_18159 = math.random(0, 1)
if choix_sorts_18159 == 0 then
pUnit:RegisterEvent('spell0_18159', 1, 1)
end
if choix_sorts_18159 == 1 then
pUnit:RegisterEvent('spell1_18159', 1, 1)
end
end

function mob18159_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18159', math.random(1500, 3000), 1)
end

function mob18159_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18159_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18159_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18159, 1, 'mob18159_Action')
RegisterUnitEvent(18159, 2, 'mob18159_Leave')
RegisterUnitEvent(18159, 3, 'mob18159_Kill')
RegisterUnitEvent(18159, 4, 'mob18159_Die')
